<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/piaoyi.tld" prefix="piaoyi"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>票易网</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/user.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="css/changejs.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.pngFix.pack.js"></script>
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/jquery.lazyload.js"></script>
<script type="text/javascript" src="js/foucs.js"></script>
<script type="text/javascript">
	$("img").seeIt(function(){$(this).attr("src" , $(this).attr("original"));}, {nearby : 200});
	var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0578294a14fae8ac90f4609ae2844eda' type='text/javascript'%3E%3C/script%3E"));

	$(function(){
		var $zscrtime;
		$zscrtime = setInterval(function(){
			var $leng = $('ul#xxk img[original1!="true"]');
			$leng.each(function(i,o){
				var self = $(o);
				if(self.attr("original1")!="true"){
					self.attr("src", self.attr("original1"));
					self.attr("original1","true");
				}
				if(i>2) return false;
			});
		   if($leng.length==0) clearInterval($zscrtime);
			
		},5000);
	});
	
var city=new Array();
<s:iterator id="c" value="%{citys}">
city[city.length]=new Array(<s:property value="#c.provinceId" escape="false"/>,<s:property value="#c.id" escape="false"/>,'<s:property value="#c.name" escape="false"/>');
</s:iterator>
function onprovince(provinceId){
   $('#city').empty();
   for(i=0;i<city.length;i++){
   	if(provinceId == city[i][0]){
   		$('#city').append("<option value='"+city[i][1]+"'>"+city[i][2]+"</option>");
   		//$('#city').options.add(new Option(city[i][2],city[i][1])); 
   	}
   }
}	
</script>
</head>
<body>
<div class="wrap">

	<div class="list_header">
    	<div class="top"><s:include value="/top.jsp" /></div>
	</div>
    
    <div class="list_main">
    
    	<div class="user_content">
        	<ul>
            	<li><span class="user_bg">用户中心</span></li>
                <li>
                	<div class="user_left">
                    	<s:include value="/WEB-INF/user/menu.jsp" />
                    </div>
                    <div class="user_right">
                    <div align="center">
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <form name="save" id="save" method="post" action="user_address.action">
					<s:hidden name="action" value="save"/>
                      <col align="right" />
                      <col align="left" />
                      <tr>
                        <td width="17%" height="66" align="center" valign="middle"><b>收货地址</b></td>
                        <td colspan="4">&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="40" align="right">收货人姓名：</td>
                        <td colspan="4"><s:textfield name="consignee" id="consignee" cssClass="address_text"/></td>
                      </tr>
                      <tr>
                        <td height="40" align="right">所在地区：</td>
                        <td width="150" align="left">省:<s:select list="provinceList" name="province" id="province" listKey="key" listValue="value" onchange="onprovince(this.value);" cssStyle="width:100px"></s:select></td>
                        <td width="250" align="left">市:<s:select list="cityList" name="city" id="city" listKey="key" listValue="value" cssStyle="width:150px"></s:select></td>
                        <td width="175" align="left">区:<s:textfield name="district" id="district" cssClass="address_text"/></td>
            			<td width="15%" align="left"></td>
                      </tr>
                      <tr>
                        <td height="40" align="right">街道地址：</td>
                        <td colspan="4"><s:textfield name="address" id="address" cssClass="address_text"/></td>
                      </tr>
                      <tr>
                        <td height="40" align="right">邮政编码：</td>
                        <td colspan="4"><s:textfield name="zipcode" id="zipcode" cssClass="address_text"/></td>
                      </tr>
                      <tr>
                        <td height="40" align="right">手机号码：</td>
                        <td colspan="4"><s:textfield name="mobile" id="mobile" cssClass="address_text"/></td>
                      </tr>
                      <tr>
                        <td height="40" align="right">电子邮箱：</td>
                        <td colspan="4"><s:textfield name="email" id="email" cssClass="address_email"/></td>
                      </tr>
                      <tr>
                        <td height="40" align="right">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td height="60" valign="bottom"><input type="image" src="images/user_button.jpg" border="0" align="left" /></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                    </table>
                    </div>
                  </div>
                </li>
            </ul>
        <div style="clear:both;"></div>
        </div>
    </div>
    <div class="footer">
      <s:include value="/foot.jsp" />
    </div>

</div>
</body>
</html>
